package com.jackyzgy.collection;

import java.util.List;
import java.util.Vector;

public class MyTest {

	public static void main(String[] args) {
		List list = addList(new String[]{"1","2","3","4","5","6"});
		printList(list);
	}
	
	public static List addList(String... strings){
		List list = new Vector();
		for (int i = 0; i < strings.length; i++) {
			list.add(strings[i]);
		}
		
		return list;
	}
	
	public List removeList(List list,int index){
		
		return list;
	}
	
	public static void printList(List list){
		for (int i = 0; i < list.size(); i++) {
			System.out.println(list.get(i));
		}
	}
}
